package com.aijk.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * <p>  </p>
 * User: chendw
 * Date: 2017/3/9 15:28
 */
@Component
@PropertySource({"classpath:public.properties", "classpath:public-env.properties"})
@ConfigurationProperties(prefix = "public")
public class PublicConfig {
    public static String welcome;
    public static String env;

    public static void setWelcome(String welcome) {
        PublicConfig.welcome = welcome;
    }

    public static void setEnv(String env) {
        PublicConfig.env = env;
    }
}
